package com.qf;


import org.junit.Test;

import java.util.concurrent.CompletableFuture;

public class TestCallableFuture1 {


    @Test
    public void test1() {
        System.out.println(222);
        System.out.println(Thread.currentThread().getName());
        CompletableFuture<Object> completableFuture = CompletableFuture.supplyAsync(
                () -> {
                    System.out.println(111);
                    System.out.println(Thread.currentThread().getName());
                    return 111;
                }
        );
        System.out.println(3333);
    }
}
